﻿using System;
namespace CardRegisterCollection.Model
{
	/// <summary>
	/// user:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class User
	{
		public User()
		{}
		#region Model
		private string _id;
		private string _username;
		private string _password;
		private string _phone;
		private string _truename;
		private string _createdby;
        private string _deptId;
        private string _unitId;
        private DateTime? _createdat=DateTime.Now;
		private bool _deleteflag= false;
		private string _lastupdatedby;
		private DateTime? _lastupdatedat;
		/// <summary>
		/// 
		/// </summary>
		public string UnitId
        {
			set{ _unitId = value;}
			get{return _unitId; }
		}

        /// <summary>
        /// 
        /// </summary>
        public string DeptId
        {
            set { _deptId = value; }
            get { return _deptId; }
        }


        /// <summary>
        /// 
        /// </summary>
        public string ID
        {
            set { _id = value; }
            get { return _id; }
        }

        /// <summary>
        /// 登录账号
        /// </summary>
        public string UserName
		{
			set{ _username=value;}
			get{return _username;}
		}
		/// <summary>
		/// 登录密码
		/// </summary>
		public string Password
		{
			set{ _password=value;}
			get{return _password;}
		}
		/// <summary>
		/// 电话
		/// </summary>
		public string Phone
		{
			set{ _phone=value;}
			get{return _phone;}
		}
		/// <summary>
		/// 真实姓名
		/// </summary>
		public string TrueName
		{
			set{ _truename=value;}
			get{return _truename;}
		}
		/// <summary>
		/// 创建人
		/// </summary>
		public string CreatedBy
		{
			set{ _createdby=value;}
			get{return _createdby;}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime? CreatedAt
		{
			set{ _createdat=value;}
			get{return _createdat;}
		}
		/// <summary>
		/// 是否注销
		/// </summary>
		public bool DeleteFlag
		{
			set{ _deleteflag=value;}
			get{return _deleteflag;}
		}
		/// <summary>
		/// 最后更新人
		/// </summary>
		public string LastUpdatedBy
		{
			set{ _lastupdatedby=value;}
			get{return _lastupdatedby;}
		}
		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime? LastUpdatedAt
		{
			set{ _lastupdatedat=value;}
			get{return _lastupdatedat;}
		}
		#endregion Model

	}
}

